const mysql = require("mysql");
const db = mysql.createPool({
  host: "localhost", // 连接地址
  port: "3306", //端口号
  user: "root", //用户名
  password: "wei630229", //密码
  database: "exapp2", //数据库名
});
module.exports = db;
